import Layout from "@/layout";

const router = {
  path: "/integrity_manage",
  component: Layout,
  meta: { title: "诚信管理", icon: "list", roles: ["诚信管理"] },
  redirect: "noRedirect",
  children: [
    {
      path: "company_manage",
      component: () => import("@/views/project/integrity/company/index"),
      redirect: "/integrity_manage/company_manage/list",
      meta: {
        menusMode: 3,
        title: "企业管理",
        roles: ["企业管理"],
        icon: "item",
        activeMenu: "/integrity_manage/company_manage"
      },
      children: [
        {
          path: "list",
          component: () =>
            import("@/views/project/integrity/company/list/list.vue"),
          meta: {
            menusMode: 3,
            title: "企业管理",
            breadcrumb: false,
            activeMenu: "/integrity_manage/company_manage",
            roles: ["企业管理"]
          },
          hidden: true
        }
      ]
    },
    {
      path: "company_person_manage",
      name: "企业人员管理",
      redirect: "/integrity_manage/company_person_manage/list",
      component: () => import("@/views/project/integrity/company_person/index"),
      meta: {
        menusMode: 3,
        title: "企业人员管理",
        roles: ["企业人员管理"],
        icon: "item",
        activeMenu: "/integrity_manage/company_person_manage"
      },
      children: [
        {
          path: "list",
          component: () =>
            import("@/views/project/integrity/company_person/list/list.vue"),
          meta: {
            menusMode: 3,
            title: "企业人员管理",
            noCache: false,
            breadcrumb: false,
            activeMenu: "/integrity_manage/company_person_manage",
            roles: ["企业人员管理"]
          },
          hidden: true
        }
      ]
    }
  ]
};
export default router;
